const mongoose = require("../db/db_learn-log")
const Schema = mongoose.Schema({
    openid: {
        type: String,
        require: true
    },
    password:{
        type:String,
        require:true,
    },
    nickName:{
        type:String,
        require:true
    },
    createDate:{
        type:String,
        default:new Date().getTime()
    },
})

const LEARN_USER=mongoose.model("user",Schema)
module.exports=LEARN_USER